<?
	include "loggedin.inc.php";




   require('../includes/messages.inc.php');
   require('../includes/config.inc.php');
   

   require("./header.php"); 
   require('../includes/styles.inc.php'); 


	#//
	$ERR = "&nbsp;";
	
	function upd($k)
	{
		$pp;
		mysql_query("update PHPAUCTIONW_config set value = '".$_POST[$k]."' where `key` = '$k'") or die(mysql_error());
	}
	
	#// 
	if($_POST)
	{
		$pp = $_POST;
		$pp['use_pp'] = ($pp['use_pp']) ? 1 : 0;
		$pp['use_storm'] = ($pp['use_storm']) ? 1 : 0;		
		$pp['use_2co'] = ($pp['use_2co']) ? 1 : 0;		
		upd('ppdesc');
		upd('ppacct');
		upd('2coid');
		upd('stormacct');
		upd('2cohash');
		upd('storm_fee');
		upd('2co_fee');
		upd('pp_fee');
		upd('listprice');
		upd('use_pp');
		upd('use_2co');
		upd('use_storm');
		$saved = true;
	}
	
	require('../includes/prepend.inc.php');

?>

<TABLE BORDER=0 WIDTH=100% CELLPADDING=0 CELLSPACING=0 BGCOLOR="#FFFFFF">
<TR>
<TD>

	<CENTER>
	<FONT FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="4"><BR>
	<B>
		<? print $MSG_922; ?>
	</B>
	</FONT>
	<BR>
	<BR>
	<? if ($saved) { ?>
	<font color="#FF0000" face="Verdana, Arial, Helvetica, sans-serif">Settings succesfully changed</font>	<? } ?>
	<BR>
			<FORM NAME=conf ACTION=<?=basename($PHP_SELF)?> METHOD=POST  ENCTYPE="multipart/form-data">
				    
          <TABLE WIDTH=550 CELLPADDING=2 ALIGN="CENTER">
            <TR> 
              <TD COLSPAN="2" ALIGN=CENTER><B><FONT FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2" COLOR="#FF0000"> 
                <? print $ERR; ?> </FONT></B></TD>
            </TR>
            <TR>
              <TD COLSPAN="2"><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2"> <strong><? print $MSG_928; ?></strong></FONT></TD>
            </TR>
            <TR VALIGN="TOP">
              <TD COLSPAN="2"><IMG SRC="../images/transparent.gif" WIDTH="1" HEIGHT="5"></TD>
            </TR>
            <TR VALIGN="TOP">
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2"> <? print $MSG_929; ?> </FONT></TD>
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2">&nbsp; </FONT>
                  <INPUT NAME="listprice" TYPE="text" id="listprice" VALUE="<?=$cfg[listprice]?>" SIZE="7" MAXLENGTH="255">
              </TD>
            </TR>
            <TR VALIGN="TOP">
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2"> <? print $MSG_934; ?> </FONT></TD>
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2">&nbsp; </FONT>
                  <INPUT NAME="ppdesc" TYPE="text" id="ppdesc" VALUE="<?=$cfg[ppdesc]?>" SIZE="45" MAXLENGTH="255">
              </TD>
            </TR>
            <TR VALIGN="TOP">
              <TD COLSPAN="2"><IMG SRC="../images/transparent.gif" WIDTH="1" HEIGHT="5"></TD>
            </TR>
            <TR> 
              <TD COLSPAN="2"> <FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2"> 
                <strong><? print $MSG_925; ?></strong></FONT></TD>
            </TR>
            <TR VALIGN="TOP"> 
              <TD COLSPAN="2"><IMG SRC="../images/transparent.gif" WIDTH="1" HEIGHT="5"></TD>
            </TR>
            <TR VALIGN="TOP">
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2"><? print $MSG_935; ?></FONT></TD>
              <TD><input name="use_pp" type="checkbox" id="use_pp" value="1" <? echo $cfg['use_pp'] ? "checked" : ""; ?>></TD>
            </TR>
            <TR VALIGN="TOP"> 
              <TD WIDTH=169><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2"> 
                <? print $MSG_924; ?> </FONT></TD>
              <TD WIDTH="365"> <FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2">&nbsp; 
                </FONT>
                <INPUT NAME="ppacct" TYPE="text" id="ppacct" VALUE="<?=$cfg[ppacct]?>" SIZE="45" MAXLENGTH="255"> 
              </TD>
            </TR>
            <TR VALIGN="TOP">
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2"> <? print $MSG_933; ?></FONT></TD>
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2">&nbsp; </FONT>
                  <INPUT NAME="pp_fee" TYPE="text" id="pp_fee" VALUE="<?=$cfg['pp_fee']?>" SIZE="45" MAXLENGTH="255">
              </TD>
            </TR>
            <TR VALIGN="TOP"> 
              <TD COLSPAN="2"><IMG SRC="../images/transparent.gif" WIDTH="1" HEIGHT="5"></TD>
            </TR>
            <TR VALIGN="TOP">
              <TD colspan="2"><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2"><strong><? print $MSG_926; ?></strong></FONT></TD>
            </TR>
            <TR VALIGN="TOP">
              <TD COLSPAN="2"><IMG SRC="../images/transparent.gif" WIDTH="1" HEIGHT="5"></TD>
            </TR>
            <TR VALIGN="TOP">
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2"><? print $MSG_936; ?></FONT></TD>
              <TD><input name="use_storm" type="checkbox" id="use_storm" value="1" <? echo $cfg['use_storm'] ? "checked" : ""; ?>></TD>
            </TR>
            <TR VALIGN="TOP">
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2"> <? print $MSG_931; ?> </FONT></TD>
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2">&nbsp; </FONT>
                  <INPUT NAME="stormacct" TYPE="text" id="stormacct" VALUE="<?=$cfg[stormacct]?>" SIZE="45" MAXLENGTH="255">
              </TD>
            </TR>
            <TR VALIGN="TOP">
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2"> <? print $MSG_933; ?></FONT></TD>
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2">&nbsp; </FONT>
                  <INPUT NAME="storm_fee" TYPE="text" id="storm_fee" VALUE="<?=$cfg['storm_fee']?>" SIZE="45" MAXLENGTH="255">
              </TD>
            </TR>
            <TR VALIGN="TOP">
              <TD COLSPAN="2"><IMG SRC="../images/transparent.gif" WIDTH="1" HEIGHT="5"></TD>
            </TR>
            <TR VALIGN="TOP">
              <TD colspan="2"><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2"><strong><? print $MSG_927; ?></strong></FONT></TD>
            </TR>
            <TR VALIGN="TOP">
              <TD COLSPAN="2"><IMG SRC="../images/transparent.gif" WIDTH="1" HEIGHT="5"></TD>
            </TR>
            <TR VALIGN="TOP">
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2"><? print $MSG_937; ?></FONT></TD>
              <TD><input name="use_2co" type="checkbox" id="use_2co" value="1" <? echo $cfg['use_2co'] ? "checked" : ""; ?>></TD>
            </TR>
            <TR VALIGN="TOP">
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2"> <? print $MSG_930; ?></FONT></TD>
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2">&nbsp; </FONT>
                  <INPUT NAME="2coid" TYPE="text" id="2coid" VALUE="<?=$cfg['2coid']?>" SIZE="45" MAXLENGTH="255">
              </TD>
            </TR>
            <TR VALIGN="TOP">
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2"> <? print $MSG_932; ?></FONT></TD>
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2">&nbsp; </FONT>
                  <INPUT NAME="2cohash" TYPE="text" id="2cohash" VALUE="<?=$cfg['2cohash']?>" SIZE="45" MAXLENGTH="255">
              </TD>
            </TR>
            <TR VALIGN="TOP">
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2"> <? print $MSG_933; ?></FONT></TD>
              <TD><FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2">&nbsp; </FONT>
                  <INPUT NAME="2co_fee" TYPE="text" id="2co_fee" VALUE="<?=$cfg['2co_fee']?>" SIZE="45" MAXLENGTH="255">
              </TD>
            </TR>
            <TR VALIGN="TOP">
              <TD>&nbsp;</TD>
              <TD>&nbsp;</TD>
            </TR>
            <TR VALIGN="TOP"> 
              <TD COLSPAN="2"><IMG SRC="../images/transparent.gif" WIDTH="1" HEIGHT="5"></TD>
            </TR>
            <TR> 
              <TD WIDTH=169> <INPUT TYPE="hidden" NAME="action" VALUE="update"> 
              </TD>
              <TD WIDTH="365"> <INPUT TYPE=submit NAME=act VALUE="<? print $MSG_530; ?>"> 
              </TD>
            </TR>
            <TR> 
              <TD WIDTH=169></TD>
              <TD WIDTH="365"> </TD>
            </TR>
          </TABLE>
	</FORM>
	<BR><BR>

	<FONT FACE="Verdana, Verdana, Arial, Helvetica, sans-serif" SIZE="2">
	<A HREF="admin.php" CLASS="links">Admin Home</A>
	</FONT>
	</CENTER>
	<BR><BR>

</TD>
</TR>
</TABLE>

<!-- Closing external table (header.php) -->
</TD>
</TR>
</TABLE>

<? require("./footer.php"); ?>
</BODY>
</HTML>
